$tpl->assign('operation', $operation);
-$credit = $comptes->get($operation['compte_credit']);
-$tpl->assign('nom_compte_credit', $credit['libelle']);
-
-$debit = $comptes->get($operation['compte_debit']);
-$tpl->assign('nom_compte_debit', $debit['libelle']);
+foreach ($operation['fluxs'] as $key => &$flux)
+{
+ $compte = $comptes->get($flux['compte']);
+ $flux['compte_libelle'] = $compte['libelle'];
+ $flux['montant_oppose'] = - $flux['montant'];
+}
+$tpl->assign('fluxs', $operation['fluxs']);
$tpl->assign('exercice', $exercices->get($operation['id_exercice']));
$tpl->display('admin/compta/operations/voir.tpl');
-?>
\ No newline at end of file
+?>